when to take out repayments first then calculate interest on the account?
The way I see it is as follows. If you are withdrawing then work out repayments and then take account of interest. If taking on a loan then work out the interest first. No point working out the repayments for a loan if you don't know the interest rate.