How to calculate the principal portion for the monthly payment