FX-165 remove the ternary operator's use in setting tdays