The function is CUMPRINC, stands for cumlative principal. You put in the rate per period, original loan value, number of period, starting period and ending period you want the total.
For you it would be equity = Cumprinc(0.375/12,360,352000,1,60) + 98000 for the equity after 5 years.
CUMPRINC might be a financial analysis add-in but it’s part ofthe basic package.