You apportion. 1-3 factors as appropriate. Sales, property and payroll.
There is no part year construct for S Corporations.