improve calculation of total active session time