Dependence of the amount of open magnetic flux on the direction of the interplanetary magnetic field