refactor for story based on code review

-used ruby api to calculate first of next month