Fix 'profloss' command, end date off-by-one bug