1. Change the system date to one day earlier than last month’s expiry date and create any new portfolio.

2. Now try Ctrl R to close the form[F10] and change the system date to the present date and check. [eg: if an expiry date was 25/07/19 then change the system date to 24/07/19 and create a new portfolio]