[1] debugging calculation logic