use $until instead of $to
use common conditional pattern
Merge pull request #14 from guardian/until-for-to

use $until instead of $to