change Period::diff to Period::durationDiff