Fix cppcheck issue "src/calendar/calendarservice.cpp:613: Clarify calculation precedence for '&' and '?'.".