complex calc