How to set up subscription?

Can anyone please give me guidance how to set this up for subscription and notification:

I prefer the setup from end point of view (because there are 30 and 31 days months).
Thank you

Here is what I know. others correct me if I’m wrong.

With the current functionality in ERPNext you can either raise a subscription at the beginning or end of the subscription period. To send the invoice in the middle (D-7) of the subscription period, you can generate the subscription invoice at the beginning of the period and use a custom script to “send” it to your customer on D-7.

As the invoice is due only at D0 (from end point) you will have to provide one month credit period to the customer when the invoice is generated

Another custom script could cancel the subscription when it is 7 days after the due date. (D+7) AND, a message the customer.

We can’t use the built in functionality?

To my knowledge, no.