Calculate the percentage for progress and send with event