You can choose which way to do it. I choose 1st in 1st out always. At least that is the way I do it and my accountant confirms its ok. Not advice just me.