Please improve grammaticallity of the following sentence.
They have to spend more time to take care of their parents by themselves.
They have to spend more time taking care of their parents by themselves.