You have up to 12 months for OPT, if you are a STEM degree F1 student, then you also have another 24 months for STEM OPT extension.