Fix calculation of duration for months and years
Tests for pf::config::access_duration