Given an array of integers representing historical creator earnings, find the maximum profit a creator could secure over a specific time window.