calculating Q for light and heavy