How to add a conditional price based on a calculation?