flow calculator typed