Hi,
Pass first date say dt = date to fm day_in_week , If return Value >2 , then their is no tuesday in first week, Get the Difference for Tuesday as df =ReturnValue - 2, Then Add or Substract this df value to first date as
PriceDt = dt - df.
or
PriceDt = dt + df.
Regards
Somendra