correct calculation method