Chelsea would have to pay Derby around £4m in compensation if they appoint club legend Frank Lampard as their new manager.