If a code violation has been cited during an inspection. How long does the contractor have to correct the code violation?

If a code violation has been cited during an inspection. How long does the contractor have to correct the code violation?