How are you charging? Since you are in the UK, I'll ask whether its 3.3kW (domestic outlet) or 7.2kW (dedicated charging station)? How long is your cheap electricity tariff? The reason I ask is that unless you are charging at 120V in the US (about 1.8kW), and especially if you have a dedicated charging station (7.2kW or better), your daily charging is probably short enough that charging would be complete before the end of the tariff period.
Not that your idea isn't a good one, but I'm just wondering how often it would come into play?
Also, if you set a charge limit of say 80%, and a charge window of X to Y, which one should take priority? I.e. if you NEED an 80% charge, how would you feel if the car terminated charging early because it fell outside of the tariff period?
Perhaps a better solution would be to use the departure time capability. Just set the departure time for the end of your tariff period and let the car figure out when to start charging so that you end up
with the desired state of charge.
If you absolutely must stick to your defined tariff time period, then I would probably suggest using a charging station that supports a timer. That way the charging station itself will enforce the tariff policy.