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 top left corner of the screen (). If you manage to complete the Settlement within the given time, you can get some additional rewards for completing it!