Hi
There would seem to be a logic problem in what you are trying to do. If you add 6 months to 31 August you get a date that does not exist. I think you need to define your logic so that it works for all dates and then you can write the code to implement the logic.