updated for interest rate and expected2.m