WIP: formula for ext/imap