Calculation of principal and interest payment