Added code to determine the next billing date