How is pricing calculated?