spend ...(in)doing
There are three days we can use to buy gifts.这里的to buy gifts才是目的状语
但是spend in doing是固定搭配