Using nested IF AND statement in a formula field

Using nested IF AND statement in a formula field

I am trying to create a string formula to try and gauge how accurate our sales team are when they are estimating how long it will take to close a deal. If they are within the 14 day period from the closing date it should show "On Time". If they are outside of 14 day period of when the deal closes it will show either "Early" or "Late" in the field.

I tested the formula in gsheets and it is working, but when I try to add it in the CRM formula field I am getting a "wrong data type" error.

If(And(
(Datecomp(${Opportunities.Estimated Closing Date},${Opportunities.Closing Date})/1440)>=-14,
(Datecomp(${Opportunities.Estimated Closing Date},${Opportunities.Closing Date})/1440)<=14)==true,'On Time',
If(
(Datecomp(${Opportunities.Estimated Closing Date},${Opportunities.Closing Date})/1440)<=-15,'Late','Early'))
    Zoho Desk Resources

    • Desk Community Learning Series


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


      Zoho CRM Plus Resources

        Zoho Books Resources


          Zoho Subscriptions Resources

            Zoho Projects Resources


              Zoho Sprints Resources


                Zoho Orchestly Resources


                  Zoho Creator Resources


                    Zoho WorkDrive Resources



                      Zoho Campaigns Resources

                        Zoho CRM Resources

                        • CRM Community Learning Series

                          CRM Community Learning Series


                        • Tips

                          Tips

                        • Functions

                          Functions

                        • Meetups

                          Meetups

                        • Kbase

                          Kbase

                        • Resources

                          Resources

                        • Digest

                          Digest

                        • CRM Marketplace

                          CRM Marketplace

                        • MVP Corner

                          MVP Corner




                          Zoho Writer Writer

                          Get Started. Write Away!

                          Writer is a powerful online word processor, designed for collaborative work.

                            Zoho CRM コンテンツ




                              ご検討中の方