Added returned items to revenue calculation