This is probably a question I could ask Amazon too but does anyone know how pricing for S&S works?

For example, I was looking at the S&S price for formula yesterday, and it is $8 more today than it was yesterday. If I subscribe to a product at a certain time, is the price locked in then, or does Amazon charge you the current price of the product when it ships?