fixed day gain calculation