Calculates option prices for European and American options