; and (B) one-third of such funds shall be allotted on the basis of the relative number of individuals in each State who have been unemployed for 27 weeks or more, compared to the total number of individuals in all States who have been unemployed for 27 weeks or more. (2) Calculation For purposes of paragraph (1), the number of unemployed individuals and the number of individuals unemployed for 27 weeks or more shall be based on the data for the most recent 12-month period, as determined by the Secretary. (c) Reallotment (1) Failure to submit state plan If a State does not submit a State plan by the time specified in section 1223(b), or a State does not receive approval of a State plan, the amount the State would have been eligible to receive pursuant to the formula under subsection (b) shall be allotted to States that receive approval of the State plan under section 1223 in accordance with the relative allotments of such States as determined by the Secretary under subsection (b). (2) Failure to implement activities on a timely basis The Secretary of Labor may, in accordance with procedures and criteria established by the Secretary, recapture the portion of the State allotment under this part that remains unobligated if the Secretary determines such funds are not being obligated at a rate sufficient to meet the purposes of this part. The Secretary shall reallot such recaptured funds to other States that are not subject to recapture in accordance with the relative share of the allotments of such States as determined by the Secretary under subsection (b). (3) Recapture of funds Funds recaptured under paragraph (2) shall be available for reobligation not later than December 31, 2017. 1223. State plan (a) In general For a State to be eligible to receive an allotment under section 1222, a State shall submit to the Secretary of Labor a State plan in such form and containing such information as the Secretary may require, which at a minimum shall include— (1) a description of the activities to be carried out by the State