very messy. I would push the logic to the database level. but if you must in webi then you can use formatdate() function to return parts of the time assuming they are in date format otherwise you’d have to convert to a date using todate() and then extract the hour in one variable and minute in another. then you create a variable referencing these with a monster if statement. also hopefully you should use the 24 hour clock where 1 is 1am and 13 is 1pm
=if [hour]=“0” and [min]<=15 then “0:00” else if [hour]=0 and [min]<=30 then “0:15” etc, so you’d have one 4 conditions for each hour times 24=96 conditions in your if statement.