def get_mortgage_payment_per_payment_frequency(self):
<EOL>r = self.get_interest_rate_per_payment_frequency()<EOL>n = self.get_total_number_of_payments_per_frequency()<EOL>p = self._loan_amount<EOL>mortgage = None<EOL>top = None<EOL>bottom = None<EOL>top = r + <NUM_LIT:1><EOL>top = math.pow(top, n)<EOL>top = r * top<EOL>bottom = r + <NUM_LIT:1><EOL>bottom = math.pow(bottom, n)<EOL>bottom = bottom - <NUM_LIT:1><EOL>if bottom == <NUM_LIT:0>:<EOL><INDENT>return Money(amount=<NUM_LIT>, currency=self._currency)<EOL><DEDENT>mortgage = (top / bottom)<EOL>mortgage = mortgage * p<EOL>return mortgage<EOL>
Function will return the amount paid per payment based on the frequency.