Deductions & credits

On the 1099-B from the broker the sale will be listed ... bought $5000 - sold $4335 = loss $665 period ... it is just that simple.  What happened to the value while you owned it is immaterial.