Calculating term date based on invoice date and term