monthlyInterestRate = annualInterestRate / 12.0
monthlyPayment = 10
while balance > 0:
    balance = startBalance
print(('checking monthly payment of', monthlyPayment))
for each in range(0, numMonths):
    balance = balance - monthlyPayment
balance = balance + monthlyInterestRate * balance
if balance > 0:
    monthlyPayment += 10
print(('you should pay', monthlyPayment, 'per month'))
Code to Calculate Minimum Monthly Credit Card Repayment Over A year