there is a code so the expiration day of a plans is based on number or a counter, not in weeks or month

So whats the problem ?

  1. You have a CLICK-COUNTER!
  2. You expiration-date will always be the curret-date and time.
  3. How it would work for you?

You press a button → COUNTER → counts-up! (1,2,3,4,5,6,…)
You define/declare a max. → counterNumber = 10!
You generate an if-else-satement…

if() { ..... } 
else { ..... }

You put some logic into it…
If my counter reaches → 10 ← set the expirationDate to → current DATE