The photospheric magnetic flux budget