calculates monthly payments