How can I swap oil for diesel and kerosene?

Click the Oil refinery building and then "Resources". A window will open where you can use the sliders or manually adjust how many resources you want to swap; below you can see the rates and costs for swapping the resources.
Please remember that our new game interface offers better options to edit the amount of resources and make the experience easier.