I have to create a functionality that will be used for calculating prices. This would get all its parameters from database and then save the calculated prices back to database. The type and number of parameters change depending on the formula being used. Also same formula can be used with different values being passed to the parameters. What should be the approach to design this in Java?