by WhiteRider » Wed Sep 29, 2010 11:34 am
I'd forget the variables - use this Format Expression:
format( '{1}:{2}{3}',
format_number( if ( (cnt_minutes / cnt_days_played) < 60, 0, (cnt_minutes / cnt_days_played - 30) / 60 ), 0, false, false),
if ( (cnt_minutes / cnt_days_played) MOD 60 < 10, '0', ''),
format_number((cnt_minutes / cnt_days_played) MOD 60, 0, false, false) )
..and this Value Expression:
(cnt_minutes / 60) / cnt_days_played