calc for sessions