[PD] integer (mis)calculator