it stops when the councilors or you get joined in the councilor's that's when it stops but it might be sandbox cause you can keep playing anyways.
I thought it ended when you complete your city.