event pricing logic on templates