Miscellaneous functions for finance / credit risk analysts