Bug Fixes for 1.23 release

Fixed issuess MIFOSX-1099,MIFOSX-1299
wouldn't this fail in a scenario where say where posting period is 1 month and compounding period is 2 months etc