partial commit how to refactorize the total calculation
partial commit how to refactorize the total calculation

crunchbutton/crunchbutton,crunchbutton/crunchbutton,crunchbutton/crunchbutton,crunchbutton/crunchbutton