but you are right about the calculations. I also did my calculations and if
BD bats first, they need to beat Australia by 7 or more runs
If BD chase the target, they need to do it within 19.1 overs.
So essentially we can say the if Bangadesh wins Pakistan is out (the only exception is that if they win it after 19.1 over while chasing or beat Australia by 6 runs or less while defending)