def interest_calculator(interest, amount, no_of_days) do
interest_per_day = ((interest/100)/30) |> Float.floor(4)
amount_interest_per_day = interest_per_day * amount
total_balance = amount_interest_per_day + amount
case no_of_days > 0 do
true -> calculator(interest, total_balance, no_of_days-1)
false -> amount
end
end


















