How can I conditionally hide/show fields based on a calculated range of checkboxes?