trial day code