How does free trial work? Pro sites

If I set a free trial of 7 days, at what point is the person's credit billed? Day 7? But the credit card info is taken day 1, right?