Please execute the below query to fetch project timespent.
SELECT pr.PROJECTID "Project Id",
pr.TITLE "Project Title",
(TRUNC((sum(ct.TIMESPENT)/1000/3600))||' hr '||ROUND(((sum(ct.TIMESPENT)/1000)/60)%60)||' min') "TimeSpent"
FROM ProjectDetails pr
LEFT JOIN TaskToProjects tpr ON pr.PROJECTID= tpr.PROJECTID
LEFT JOIN TaskToCharge tkc ON tpr.TASKID=tkc.TASKID
LEFT JOIN ChargesTable ct ON tkc.CHARGEID=ct.CHARGEID
GROUP BY pr.PROJECTID, pr.TITLE
ORDER BY pr.PROJECTID