i have math in my head but don’t know how to put it in code