Our flightplanning system looks at the weather and our own company statistical data regarding delays for holding etc at that time of day.
It will then suggest a fuel figure.. of course it is upto the crew.
Actually our OFP's state the percentage of flights that completed the flight with no extra fuel.. To boost confidence in the flight planning system (LIDO)