Assuming our user would like to know the downpayment amount with provided kwargs below;
terms, period and interest amount rate. Price - (presentValue* _N _ Repay Amount ) = Down payment
Assuming our user pays at the end of the given period, so our program should accumulate the value with gthe iven interest rate;
Accumulated Down payment(1+i)**N = Accumulated Price(1+i)**N - (AccumulatedValue*_N _ Repay Amount)
Assuming our user wants to calculate the downpayment with the given period of time
Accumulated Down payment = Accumulated Price ** T -(presentValue * Repay Amount ) ** T- (AccumulatedValue * Repay Amount)**-(N+T) / (1+i)**T
'''
Present Value method takes 5 parameters as intergers and returns downpayment amount
'''
presentValue = PresentValue(
InterestRate, effectiveInterestTerms, fixedPeriod, repayAmount, price)
'''
Accumulated Value method takes 5 parameters as intergers and returns downpayment amount (future value)
'''
accumulatedValue = AccumulatedValue(
InterestRate, effectiveInterestTerms, fixedPeriod, repayAmount, price)
'''
Calculate Given Time method takes 5 parameters as intergers and returns downpayment amount at any given time.
'''
calculateGivenTime = CalculateGivenTime(
InterestRate, effectiveInterestTerms, fixedPeriod, repayAmount, price)