simple stat calculation