britesynth
Registered User.
- Local time
- Tomorrow, 05:00
- Joined
- Mar 11, 2013
- Messages
- 88
Use an outer join in the subquery.
However I really wonder about the basis of your loan calculations. You are charging interest on the entire principal throughout the loan. Typically interest is charged only on the outstanding amount.
Principal Amount * interest rate * term(in months) = total interest
Principal Amount + total interest = Actual return
Actual return / total number of days = daily amortization