The Fisher equation as $$r=i-\pi$$ is little more than an approximation to the definition of the real interest rate $$r=\dfrac{1+i}{1+\pi} -1$$ where $r$ is the real interest rate, $i$ is the nominal interest rate and $\pi$ is inflation (the proportionate change in prices). You can complicate things by "coninuous compounding" but it makes little actual impact.
Looking backwards you should look at actual interest and actual inflation at the time of the loan. Looking forward, if you do not know what inflation or interest rates will be then you can only use estimated values and forecaster often prefer to estimate inflation and real interest rates, turning the Fisher equation round to give $$i = r+ \pi$$