I'm trying to design a database for my company that calculates interest paid on a loan based on the number of days there is left in that month.
For example, if a loan is taken out on Jan 27, they have to pay 5 days of interest for that month (including the day the loan is taken out).
So i'm...