Charge State Calculation for Global Solar Wind Modeling