When prepaying extra principal towards a weekly or biweekly payment mortgage it does not matter whether the prepayment falls on the payment date or between payment dates. The interest factor used to calculate the interest for a weekly or biweekly is already based upon the exact number of days between payments.
When prepaying extra principal towards a monthly payment mortgage there is no need for concern as long as the prepayment coincides with the scheduled payment.
If the prepayment is in mid month, the potential exists for a lender to use different methods of prorating interest calculations. The blended monthly payment, fixed rate mortgage (FRM) that most people are aware of is based upon a constant interest factor each month. Because of this constant interest factor, the amortization mathematics implies that an average month has 30.416666 days. If you had a 30 year FRM at an annual interest rate of 12% with monthly compounding the monthly interest factor would be 1% or 0.01 each and every month until the loan was paid in full.
You have a 12%, monthly compounding, open mortgage and decide you are going to pay extra principal 10 ten days into a 31 day month. One method of calculation is as follows. The interest for the ten days would be,. (10/31) x (.01) x (balance owing after your last payment). You would owe that 10 days of interest interest first, then you would make the prepayment and reduce the balance to Y. Twenty one days later your regular monthly payment is due and now the interest due is based upon (21/31) x (.01) x (Y). This is one of many methods. Which method your lender uses is up to their discretion and that is why the 365 day year, exact day monthly interest factor is popular.