Add script for calculating fail rate.