Last active
December 4, 2019 15:45
-
-
Save mniami/18eccd55216a4e94010161c19d8454dd to your computer and use it in GitHub Desktop.
wynagrodzenie
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def licz(stawka, l4ilosc, l4proc, ilosc_dni_platnych_wolnych): | |
zus = 1450.0 | |
podatek_proc=0.81 | |
ilosc_dni_pracy_mies=20.0 | |
miesiecy_w_roku=12.0 | |
print(f'stawka {stawka}') | |
platne_wolne = ilosc_dni_platnych_wolnych * stawka / miesiecy_w_roku | |
l4 = l4ilosc * stawka * l4proc / miesiecy_w_roku | |
print(f'L4 {l4}') | |
mies = stawka * (ilosc_dni_pracy_mies * miesiecy_w_roku - l4ilosc - ilosc_dni_platnych_wolnych) / miesiecy_w_roku + platne_wolne + l4 | |
mies_bez_l4 = stawka * ilosc_dni_pracy_mies + platne_wolne | |
netto = (mies - zus) * podatek_proc | |
netto_bez_l4 = (mies_bez_l4 - zus) * podatek_proc | |
strata = netto_bez_l4 - netto | |
print(f'netto {netto}') | |
print(f'strata {strata}') | |
print() | |
def porownaj(l4ilosc, stawka1, stawka2): | |
print("z l4 platnym") | |
licz(stawka1, l4ilosc, 0.8, 6) | |
print("bez l4 platne") | |
licz(stawka2, l4ilosc, 0, 0) | |
def policz_koszt_czesci_auta_fv(koszt): | |
return (koszt - koszt*0.23*0.5 - (koszt*0.19*0.75)) | |
porownaj(0, 0, 0) | |
print(policz_koszt_czesci_auta_fv(8000)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment