https://blog.bowen.cool/posts/derivation_of_throughput_related_formulas/