'Returns date when app version will get expired for a platform'

@classmethod
def last_supported_date(cls, platform, version):

    parsed_version = utils.parsed_version(version)
    active_configs = cls.objects.filter(platform=platform, enabled=True, expire_at__isnull=False).reverse()
    for config in active_configs:
        if (utils.parsed_version(config.version) >= parsed_version):
            return config.expire_at
