to not go to bed at the usual time
I decided to stay up and finish my homework.
宿題を終わらせるために起きていることにしました。