Slightly better performance can be obtained by eliminating Fd and calculating it after the math operation.
Attach a file by drag & drop or click to upload