Add received_at column and calculate revenue based on it