FrostRobin1

principal

Apr 10th, 2017
320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. def calculate_years(principal, interest, tax, desired):
  2.     raise NotImplementedError("TODO: calculate_years")
  3.     years = 0
  4.     if principal == desired:
  5.         years = 0
  6.     x = principal + interest
  7.     y = x - tax
  8.     desired = principal * (1+interest/tax)**n1
  9.     years = desired
  10.     return years
Advertisement
Add Comment
Please, Sign In to add comment