determine if the sentence is simple, compound or complex.

We have to go to bed when the clock chimes ten o'clock.

This sentence is complex. It contains one independent clause ("We have to go to bed") and one dependent clause ("when the clock chimes ten o'clock").