Previous month function added and correction of CC intrest done based on today date rather then fixed date