Je finis mes devoirs avec 8 heurs* d’epargner**!
*This may not be how you say “with ____ hours”. It’s a word for word translation on my part, so there’s a chance that it’s completely wrong, but whatever.
**I have no clue if this is the proper phrase for “to spare”. I used google translate.