Save some money while you can afford it.

Literal

Margin [attributive-のある] time [at-に] money [object-を] some take-away-keep.

余裕のある (possessive の + ある as adjective 'having margin') modifies 時. いくらか ('some amount of'). 取っておく is 取る ('take') + ~ておく ('put aside / keep'), the productive 'save for later' pattern.