+ Start a Discussion
Katie KourtakisKatie Kourtakis 

app customization superbadge step 2 - 'Shift Hours'

I am seeing this error...'Challange Not yet complete...here's what's wrong: The 'Shift Hours' field on the 'Volunteer Shift' record is not working as expected. I'm stuck as to what I am doing wrong. It's probably a simple fix that I'm over looking. Help solving this problem would be greatly appreciated! Thanks!

User-added image
User-added image
User-added image
Best Answer chosen by Katie Kourtakis
bretondevbretondev
Multiply your formula by 24

All Answers

bretondevbretondev
Multiply your formula by 24
This was selected as the best answer
Daniel VelezDaniel Velez
Hi @bretondev, can you explainme why we have to multiply the formula by 24?
bretondevbretondev
Beacause substracting a Date/Time field by another Date/Time field gives a result in Days.
So you need to multuply by 24 to get result in hours
Daniel VelezDaniel Velez

Thank you @bretondev for your answer. I am having problems also with the 4th challenge, could you check my question please? It is in this link (https://developer.salesforce.com/forums/ForumsMain?id=9060G0000005nCvQAI).

Samanvay JainSamanvay Jain
Hello,

I have updated the formula like this but still gettiing the same error.

FLOOR((Shift_End_Time__c - Shift_End_Time__c) * 24)