Fixed calculation bug in status command