HPR for Bond

I took a LOS test on Kaplan and got all the questions related to HPR right, except the last bond question. Instead of doing P1 - P0 + D / P0, they used a calculator and did PV = P0, Fv = 01, Pmt = D, etc. Is HPR different for debt and equity calculations? (Don’t have my text book right now to look it up and tried google).

should be the same except its a dividend on a stock and a coupon on a bond

I took it again and the debt problems were solved with the formula I thought. I think the program accidently gave me the wrong problem or something.