If you are interested in manually calculating an interest amount with irregular payments, you need to understand the impact of a stub period in the calculation. Sometimes the calculations are easy to verify and sometimes you may get a hybrid calculation because you have to do two calculations to verify the interest amount.