Pre commit calculator