Compare price to modular function