Your problem is not only related to programming, but rather related to business. Suppose I don’t even have a computer and software for this project / product, etc.
What if the plan starts on January 31st? Will I pay them on February 31? Not. Then when? How can i calculate?
It would be best to set the exact number of days (say 30) and use this as a business model. On the 30th day after the launch of the service, you will be billed. Or something like that.
In T-SQL and .NET, adding 30 days to DateTime doesn't really matter:
.NET:
DateTime value = DateTime.Now; DateTime billTime = value.AddDays(30);
T-SQL:
DATEADD(DAY,30,value)
source share