How do the time rewards work in the Settlement?

When you start a new Settlement, a chest with a timer will be displayed on the left side of the screen. If you manage to complete the Settlement within the given time, you can get some additional rewards for completing it!