The day of "pay-in" is when both the buyer sends their funds to the stock exchange and the seller sends their stocks to the stock exchange. The day of pay-out is when the stock exchange gives funds to the seller and the buyer's purchased shares.