Formula field to strip down website

Formula field to strip down website

I am migrating from Salesforce, I tried to translate this Salesforce formula field to strip away everything around the domain for the website field into one I could use for Zoho:

Salesforce Version:

  1. IF(BEGINS(Website, "www."), MID(Website, FIND('www.', Website, 1)+4, (LEN(Website) - FIND('www.', Website, 1)+4)),
  2. if(find("/",
  3. if(find("www.",Website)>0,
  4. IF(FIND("//",Website)>0,substitute(Website,left(Website,find("//www.",Website)+5),NULL),Website),
  5. IF(FIND("//",Website)>0,substitute(Website,left(Website,find("//",Website)+1),NULL),Website)))>0,left(
  6. if(find("www.",Website)>0,
  7. IF(FIND("//",Website)>0,substitute(Website,left(Website,find("//www.",Website)+5),NULL),Website),
  8. IF(FIND("//",Website)>0,substitute(Website,left(Website,find("//",Website)+1),NULL),Website)),find("/",
  9. if(find("www.",Website)>0,
  10. IF(FIND("//",Website)>0,substitute(Website,left(Website,find("//www.",Website)+5),NULL),Website),
  11. IF(FIND("//",Website)>0,substitute(Website,left(Website,find("//",Website)+1),NULL),Website)))-1),
  12. if(find("www.",Website)>0,
  13. IF(FIND("//",Website)>0,substitute(Website,left(Website,find("//www.",Website)+5),NULL),Website),
  14. IF(FIND("//",Website)>0,substitute(Website,left(Website,find("//",Website)+1),NULL),Website))))
Attempt Zoho Version:

  1. If(Startswith(${Accounts.Website}, 'www.'), Substring(${Accounts.Website}, Find('www.', ${Accounts.Website}, 1)+4, (Len(${Accounts.Website}) - Find('www.', ${Accounts.Website}, 1)+4)), 
  2. If(Find('/', 
  3. If(Find('www.',${Accounts.Website})>0, 
  4. If(Find('//',${Accounts.Website})>0,Replace(${Accounts.Website},Substring(${Accounts.Website},0,Find('//www.',${Accounts.Website})+5),''),${Accounts.Website}), 
  5. If(Find('//',${Accounts.Website})>0,Replace(${Accounts.Website},Substring(${Accounts.Website},0,Find('//',${Accounts.Website})+1),''),${Accounts.Website})))>0,Substring( 
  6. If(Find('www.',${Accounts.Website})>0, 
  7. If(Find('//',${Accounts.Website})>0,Replace(${Accounts.Website},Substring(${Accounts.Website},0,Find('//www.',${Accounts.Website})+5),''),${Accounts.Website}), 
  8. If(Find('//',${Accounts.Website})>0,Replace(${Accounts.Website},Substring(${Accounts.Website},0,Find('//',${Accounts.Website})+1),''),${Accounts.Website})),0,Find('/', 
  9. If(Find('www.',${Accounts.Website})>0, 
  10. If(Find('//',${Accounts.Website})>0,Replace(${Accounts.Website},Substring(${Accounts.Website},0,Find('//www.',${Accounts.Website})+5),''),${Accounts.Website}), 
  11. If(Find('//',${Accounts.Website})>0,Replace(${Accounts.Website},Substring(${Accounts.Website},0,Find('//',${Accounts.Website})+1),''),${Accounts.Website})))-1), 
  12. If(Find('www.',${Accounts.Website})>0, 
  13. If(Find('//',${Accounts.Website})>0,Replace(${Accounts.Website},Substring(${Accounts.Website},0,Find('//www.',${Accounts.Website})+5),''),${Accounts.Website}), 
  14. If(Find('//',${Accounts.Website})>0,Replace(${Accounts.Website},Substring(${Accounts.Website},0,Find('//',${Accounts.Website})+1),''),${Accounts.Website}))))

I keep getting You don't have the right number of arguments. Check your functions ending with () to make sure you entered all the inputs they require.

Ok, fair, it's a complicated formula and I may have messed up.

But then I tried the most simple formula:
  1. If(Startswith(${Accounts.Website}, 'www.'),Substring(${Accounts.Website},4,Len(${Accounts.Website})))
And I got the same error!!!! WTF!!!!

I am beyond frustrated. All I want to do is get the domain from the website field and strip out any "https://" "www." and any "/" after the domain.

Thank you