calculating on sessions