You sound remorseful and unlikely to be a repeat offender, having learned a hard lesson (i.e. keep your eye on the road at all times). IANAL, but I would think the judge would be amenable to delaying your jail time to when it wouldn’t interfere with your school (e.g. summer break), so that you can graduate on time. Worth asking via you attorney, I think.