methods to get period start and end of invoice