analysis now computes median duration