Looks like FCR is calculated only when reply count = 0, this does not allow in any circumstances to get accurate figures, as even a simple Thank you (even if detected by Freddy) or any automated reply will make that count to 1, another example is for a ticket closed no matter for how long a customer message on it will remove the FCR if it was the case.
Please think of a smarter way to do this.

