The RATE function calculates by iteration.

Excel formula: Calculate payment periods for loan

Excel FV function

Excel PV function

Excel RATE function

Excel NPER function

Excel PMT function

Excel PPMT function

Excel IPMT function

Excel CUMPRINC function

Excel CUMIPMT function