How to converter serial number in IMEI number

How can I convert the serial number in IMEI ?? I need a formula or guide