fixed output calculations