Here you go:
(Receive Window<= buffer size * 1000)/RTT = bits/s
Keep in mind windows sucks and uses smaller buffer ( you can change this in the reg) then linux and you will get different results(better in linux)
! This can be seen in high latency networks such as satelites.