Replace duration attributes by end attributes