Qc amount calculation adapted to new logging behaviour as well