Another try to complex calculation