how to calculate macros step by step