Smart finance function