Question: how long after purchase do you have to buy applecare?
Answer: Generally you get 60 days from the purchase date to buy AppleCare+ (only 30 days if you're in Japan), and Apple has a page where you can check your exact device's eligibility.