Schoolgirl trying to understand formula