demonstrates faulty logging logic
fixes old calculation of @paid and @received