base for calculations