The difference is likely coming from how the final payment and interest are calculated in the amortization table versus the NPER formula. NPER gives the theoretical number of periods, while the table calculates each payment individually, so rounding can make the balance reach zero a few months...