I have to calculate date before two days based on the condition .

Example date = '2012-09-01' then @date should be '2012-08-30' but here if 2012-08-31 is not working day then @date should be '2012-08-29'.

Could you please help me on this