import os
import math

os.system('cls')

def calculateMonthsUntilPaidOff(bal,apr,monthlyPayment):
	balance = bal
	daily_rate = apr / 100 / 365
	monnthly_payment = monthlyPayment
	
	num_of_months = (-1/30) * (math.log(1 + ((balance/monnthly_payment)) * (1 - ((1 + daily_rate)**30)))
            /math.log(1 + daily_rate))

	return num_of_months

balance = int(input("What is your balance? "))
apr = int(input("What is the APR on the card (as a percent)? "))
monnthly_payment = int(input("What is the monthly payment you can make? "))

months_to_pay_off = math.ceil(calculateMonthsUntilPaidOff(balance,apr,monnthly_payment))

print(f"It will take you {months_to_pay_off} monhts to pay off this card.")




ba700d3abef3a0ebca02bff42366502303588b6c
<mask token>


def calculateMonthsUntilPaidOff(bal, apr, monthlyPayment):
    balance = bal
    daily_rate = apr / 100 / 365
    monnthly_payment = monthlyPayment
    num_of_months = -1 / 30 * (math.log(1 + balance / monnthly_payment * (1 -
        (1 + daily_rate) ** 30)) / math.log(1 + daily_rate))
    return num_of_months


<mask token>

<mask token>
os.system('cls')


def calculateMonthsUntilPaidOff(bal, apr, monthlyPayment):
    balance = bal
    daily_rate = apr / 100 / 365
    monnthly_payment = monthlyPayment
    num_of_months = -1 / 30 * (math.log(1 + balance / monnthly_payment * (1 -
        (1 + daily_rate) ** 30)) / math.log(1 + daily_rate))
    return num_of_months


<mask token>
print(f'It will take you {months_to_pay_off} monhts to pay off this card.')

<mask token>
os.system('cls')


def calculateMonthsUntilPaidOff(bal, apr, monthlyPayment):
    balance = bal
    daily_rate = apr / 100 / 365
    monnthly_payment = monthlyPayment
    num_of_months = -1 / 30 * (math.log(1 + balance / monnthly_payment * (1 -
        (1 + daily_rate) ** 30)) / math.log(1 + daily_rate))
    return num_of_months


balance = int(input('What is your balance? '))
apr = int(input('What is the APR on the card (as a percent)? '))
monnthly_payment = int(input('What is the monthly payment you can make? '))
months_to_pay_off = math.ceil(calculateMonthsUntilPaidOff(balance, apr,
    monnthly_payment))
print(f'It will take you {months_to_pay_off} monhts to pay off this card.')

import os
import math
os.system('cls')


def calculateMonthsUntilPaidOff(bal, apr, monthlyPayment):
    balance = bal
    daily_rate = apr / 100 / 365
    monnthly_payment = monthlyPayment
    num_of_months = -1 / 30 * (math.log(1 + balance / monnthly_payment * (1 -
        (1 + daily_rate) ** 30)) / math.log(1 + daily_rate))
    return num_of_months


balance = int(input('What is your balance? '))
apr = int(input('What is the APR on the card (as a percent)? '))
monnthly_payment = int(input('What is the monthly payment you can make? '))
months_to_pay_off = math.ceil(calculateMonthsUntilPaidOff(balance, apr,
    monnthly_payment))
print(f'It will take you {months_to_pay_off} monhts to pay off this card.')

import os
import math

os.system('cls')

def calculateMonthsUntilPaidOff(bal,apr,monthlyPayment):
	balance = bal
	daily_rate = apr / 100 / 365
	monnthly_payment = monthlyPayment
	
	num_of_months = (-1/30) * (math.log(1 + ((balance/monnthly_payment)) * (1 - ((1 + daily_rate)**30)))
            /math.log(1 + daily_rate))

	return num_of_months

balance = int(input("What is your balance? "))
apr = int(input("What is the APR on the card (as a percent)? "))
monnthly_payment = int(input("What is the monthly payment you can make? "))

months_to_pay_off = math.ceil(calculateMonthsUntilPaidOff(balance,apr,monnthly_payment))

print(f"It will take you {months_to_pay_off} monhts to pay off this card.")



