cleaned up stock loss
fixed date issues in expiring_stock