This metric works for Gen 7 firewalls and returns a list of all active licenses that are going to expire in the next 90 days.
Licenses[?Expiration && SecurityStatus==
Licensed
&& ((time_until(Expiration,
days
))<=
90
)].['Service Name: ' SecurityService, 'Days Untill Expiration:' time_until(Expiration,
days
)]