Add script for calculating fail rate.
Added failure rate script. Thanks @cosmin-malutan, changed the pr quite a bit.