5560: corrected  to , and updated sql calculation with parentheses