All references to vTaskDelayUntil should be dividing by portTICK_RATE_MS, not multiplying by it.