Rearrange it manually to make c=... then wherever d is replace it by a cell reference and put your desired d value in there.
Why not download proper maths software?
It can be done in Excel, just build it up using the brackets. Or work out each part in a cell and combine.
such as?
such as?