API bug for certain output calculations

I’ve posted a more detailed explanation.