Prefix calculator