Duration weighted objective function