how to calculate a 3 month loan