You buy another 300g tank. Set it up lower down but beside your display tank. Drain display into new tank. Measure the inside dimensions & use L x W x H/231. That will give you the exact net water volume.
No complicated university level math involved.