You better use an amortization table to find exactly the time. However, I found a way of getting to a very close answer using the formula "NPer(rate,Pmt,PV,type)". The only trick is to add to the regular pmt the extra payment prorated by 12 months. I know it is not an exact match since using compund interest is based on actual timing. However, it is very, very close. See for example:
Loan = PV = 200,000
years = 30 (360 months)
interest = 8%/year
payment will be (using the pmt function) = $1,467.53
If not additional payment, the total of periods to pay off is:
Nper(8%/12,pmt,-PV,,) = 360 months = 30 years
Adding 1 aditional payment of $1,467.53 prorated by 12 months = 122.29 extra each month
the total period to pay off will be:
Nper(8%/12,pmt+122.29,-PV,,) = 277 months = 23 years
Do the amortization table and compare the results. almost the same !!!.
Thanks
Ed