Exiting write Option position before expiry

If u write at 2.1 and close at 3.4 you are in loss of -1.3