Per diem interest is calculated by multiplying the loan amount by the annual interest rate and dividing by 365 before multiplying by the number of days before the first of the month. Doing the calculation can help you understand how much you need to bring for closing.