A code violation has been cited during an inspection. How long does the contractor have to change the code violation?

A code violation has been cited during an inspection. How long does the contractor have to change the code violation?