WL-2123 Move the working out if it's a multi day event.

Doing date calculation in the JavaScript keeps the template simple.