figuring out the console log equation