851 viewby integers and dates

Closes #851 
this is a lot of logic for a let, can we move the rhs of `ans-s` to a function? w/a descriptive doc string