so you're shipping the code with the product or is the code the product (website/app)?
And for a time-based license you'll need a dongle with a clock in it to prevent the simple workaround of setting the clock (and general system state, etc.) back in time.