fixed calculation bug when two loans complete in same month