Nothing wrong with testing your value to a company in that instance. Don’t give them a choice, tell them you need the time off. If you’re valuable to them, they’ll let you keep the job. If not, then fuck them — no reason to work for people who don’t value your services.