calc of median revision for ongoing and complete