Flow control deals with the amount of data sent to the receiver side without receiving any acknowledgment. It makes sure that the receiver will not be overwhelmed with data.
The receiver window is the size that is currently available in the receiver's buffer. Now from the available receiver window, TCP calculates how much data can be sent further without acknowledgment.