What is the legal test for determining pre-judgment interest?

Ontario, Canada

The following excerpt is from Forest City Fire Protection v General Refrigeration Canada, 2015 ONSC 2346 (CanLII):

Unless the provisions regarding interest rates are vague or unclear, or unless the interest rate infringes a statutory provision such as the Interest Act, effect should be given to the contractual rate for the determination of both pre- and post-judgment interest: Capital One Bank v. Matovska, [2007] O.J. No. 3368 (Div. Ct.). In this case, the rate provided for in the contract is neither unclear nor illegal.

Other Questions

What is the legal test for entitlement to pre-judgment interest? (British Columbia, Canada)
Is pre-judgment interest not a statutory interest? (Alberta, Canada)
Is a plaintiff entitled to pre-judgment interest on the Kuwait Debt Judgment pursuant to section 1 of the COIA? (British Columbia, Canada)
Does pre-judgment interest run from March 1997 for a one-time act? (Ontario, Canada)
Can a wife amend her pleadings by including a claim for pre-judgment interest? (Saskatchewan, Canada)
Can a plaintiff be denied pre-judgment interest for a period of three years? (Alberta, Canada)
What is the test for pre-judgment interest in assessing damages for breach of contract? (Alberta, Canada)
Does Zesta have to appeal costs or pre-judgment interest? (Ontario, Canada)
What is the range of damages for loss of pre-judgment interest in equity? (Ontario, Canada)
How is the court expected to calculate pre-judgment interest under s.1(1) of the B.C. Bankruptcy and Insolvency Act? (British Columbia, Canada)