I took your questions as questioning my information. I apologize for the misunderstanding.
Pulsewidth is basically the amount of time the injectors spray fuel into the cylinder. The computers adjusts how much fuel is sprayed through the fuel injectors using the pulsewidth. If more fuel is needed, the injectors spray longer, meaning higher pulsewidth.
There really isn't an easy answer to how the calculation works because it varies based on operating conditions. If you ever get into engine tuning, there are multiple tables used to adjust fuel that use almost every sensor on the engine. From coolant temp, to air temp, throttle position, manifold vacuum, oxygen sensor input, knock sensors..... There are different tables for open loop operation(engine warm up and full throttle) or closed loop(part throttle after engine warms up). This i partially why the average displayed on dash(and it depends on which screen you are one) doesn't always match the hand calculated mileage.
And even hand calculating isn't exact as different fuel pumps click off at different times, and have a tolerance window for how the pumps calculate the fuel being pumping into your tank. Getting fuel in the morning when it's colder will result in a different amount of fuel than if you get fuel in afternoon when it's hot. How deep the fuel tanks and gas station are buried also makes a difference.
My display is usually about 1-1.5mph higher than hand calculated. But I've been as close as .5mpg off. Making longer trips and steady speed will result in the difference being smaller. Lots of short trips, the difference will be higher.