1. class/consistency of inputs 2. day is a date (or at least consistent in jointo and joinfrom) 3. jointovarname is in jointo, joinfromvarname is in joinfrom, valuefield is in joinfrom 4. check that joinfrom covers all of the needed days (those in jointo)