It takes me about two hours a day to do my homework.
或者是:
I spend about two hours a day of homework time.