A time-dependent model of the trade-wind boundary layer