quiz and cubic calculate