An Ohio man is getting a lesson of a lifetime when he was jailed because his daughter failed her General Equivalency Diploma (GED).

Brian Gegner is serving 180 days for contributing to the delinquency of a minor by not following a court order requiring Gegner stay on top of his daughter's education, WCPO TV reports.

To add insult to injury, his daughter, Brittany is now an adult.

The problems began when Gegner's daughter Brittany regularly skipped high school classes 2 years ago, the channel reported.

Gegner had custody of his daughter at the time and was in charge of her education.

Brittany, who is now 18, admitted that she would skip school while she stayed with her mother. She has since taken the GED exam and passed all but the math portion, which she has failed several times.

Brittany told WCPO that her father shouldn't be punished for her problems. Now Judge David Niehaus is giving her a chance to make the grade. If she passes the test, her father may be released before his sentence is up, it is reported.

Click here to read more from WCPO TV.