functional calendar and testing coupon prediction conditional