power flow fix -- not working
removing of wrong formula for power flow and add for time setting.