YOU SAID:
the homework took me a long time to do
INTO JAPANESE
宿題には長い時間がかかった
BACK INTO ENGLISH
Took a long time to do homework
INTO JAPANESE
宿題をする時間がかかった
BACK INTO ENGLISH
It was time to do my homework
INTO JAPANESE
私の宿題をする時間だった
BACK INTO ENGLISH
It was time to do my homework
You've done this before, haven't you.