When and How to Pay Quarantined Workers