Chevron interview question

When do you capitalize rather than expense a purchase?