Added methods to calculate first and last days of a month.